[INFO] cloning repository https://github.com/Saeris/rust-potrace
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Saeris/rust-potrace" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 7d93d0db47e0b5fa3bf4e250d5dec3d48ac79a54
[INFO] building Saeris/rust-potrace against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSaeris%2Frust-potrace" "/workspace/builds/worker-8/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/Saeris/rust-potrace on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/Saeris/rust-potrace
[INFO] finished tweaking git repo https://github.com/Saeris/rust-potrace
[INFO] tweaked toml for git repo https://github.com/Saeris/rust-potrace written to /workspace/builds/worker-8/source/Cargo.toml
[INFO] crate git repo https://github.com/Saeris/rust-potrace already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 43fa7f8afd34bb6df88d858466605165c0d0b110cb50c8b27819200ef855991a
[INFO] running `Command { std: "docker" "start" "-a" "43fa7f8afd34bb6df88d858466605165c0d0b110cb50c8b27819200ef855991a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "43fa7f8afd34bb6df88d858466605165c0d0b110cb50c8b27819200ef855991a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "43fa7f8afd34bb6df88d858466605165c0d0b110cb50c8b27819200ef855991a", kill_on_drop: false }`
[INFO] [stdout] 43fa7f8afd34bb6df88d858466605165c0d0b110cb50c8b27819200ef855991a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d5918ae205e8a6bcb374b252e0c52d87aa82d3d248677673e3f05e405a34e4e9
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "d5918ae205e8a6bcb374b252e0c52d87aa82d3d248677673e3f05e405a34e4e9", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.21
[INFO] [stderr]    Compiling syn v1.0.41
[INFO] [stderr]    Compiling libc v0.2.77
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.68
[INFO] [stderr]    Compiling adler32 v1.2.0
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling event-listener v2.4.0
[INFO] [stderr]    Compiling wasm-bindgen v0.2.68
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling num-traits v0.2.12
[INFO] [stderr]    Compiling num-integer v0.1.43
[INFO] [stderr]    Compiling num-bigint v0.3.0
[INFO] [stderr]    Compiling num-iter v0.1.41
[INFO] [stderr]    Compiling rayon v1.4.0
[INFO] [stderr]    Compiling num-rational v0.3.0
[INFO] [stderr]    Compiling aho-corasick v0.7.13
[INFO] [stderr]    Compiling miniz_oxide v0.3.7
[INFO] [stderr]    Compiling deflate v0.8.6
[INFO] [stderr]    Compiling async-mutex v1.3.0
[INFO] [stderr]    Compiling tiff v0.5.0
[INFO] [stderr]    Compiling png v0.16.7
[INFO] [stderr]    Compiling regex v1.3.9
[INFO] [stderr]    Compiling quote v1.0.7
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling num-complex v0.3.0
[INFO] [stderr]    Compiling rayon-core v1.8.1
[INFO] [stderr]    Compiling num v0.3.0
[INFO] [stderr]    Compiling jpeg-decoder v0.1.20
[INFO] [stderr]    Compiling image v0.23.9
[INFO] [stderr]    Compiling darling_core v0.10.2
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.68
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.68
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.68
[INFO] [stderr]    Compiling darling_macro v0.10.2
[INFO] [stderr]    Compiling darling v0.10.2
[INFO] [stderr]    Compiling cached_proc_macro v0.4.0
[INFO] [stderr]    Compiling cached v0.19.0
[INFO] [stderr]    Compiling rust-potrace v0.0.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: cannot use a comma after the base struct
[INFO] [stdout]    --> src/posterizer.rs:176:48
[INFO] [stdout]     |
[INFO] [stdout] 176 |         potrace.setParameters(PotraceOptions { ..Default::default(), blackOnWhite });
[INFO] [stdout]     |                                                ^^^^^^^^^^^^^^^^^^^^- help: remove this comma
[INFO] [stdout]     |
[INFO] [stdout]     = note: the base struct must always be the last field
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: expected identifier, found `1`
[INFO] [stdout]    --> src/posterizer.rs:243:82
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                           --------------------   ^ expected identifier
[INFO] [stdout]     |                                                           |
[INFO] [stdout]     |                                                           while parsing this struct
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: comparison operators cannot be chained
[INFO] [stdout]    --> src/posterizer.rs:243:52
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                    ^   ^^
[INFO] [stdout]     |
[INFO] [stdout] help: parenthesize the comparison
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if (a < b) == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                  ^     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: missing condition for `if` expression
[INFO] [stdout]    --> src/posterizer.rs:243:49
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                 ^ expected if condition here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `null` in this scope
[INFO] [stdout]    --> src/posterizer.rs:123:36
[INFO] [stdout]     |
[INFO] [stdout] 123 |         self.calculatedThreshold = null
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 1   | use std::ptr::null;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `null` in this scope
[INFO] [stdout]    --> src/posterizer.rs:129:36
[INFO] [stdout]     |
[INFO] [stdout] 129 |         self.calculatedThreshold = null;
[INFO] [stdout]     |                                    ^^^^ not found in this scope
[INFO] [stdout]     |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]     |
[INFO] [stdout] 1   | use std::ptr::null;
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `boolean` in this scope
[INFO] [stdout]    --> src/posterizer.rs:167:41
[INFO] [stdout]     |
[INFO] [stdout] 167 |     fn pathTags(&mut self, noFillColor: boolean) -> Vec<&str> {
[INFO] [stdout]     |                                         ^^^^^^^
[INFO] [stdout]     |                                         |
[INFO] [stdout]     |                                         not found in this scope
[INFO] [stdout]     |                                         help: perhaps you intended to use this type: `bool`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `parseFloat` in this scope
[INFO] [stdout]    --> src/posterizer.rs:197:39
[INFO] [stdout]     |
[INFO] [stdout] 197 |             calculatedOpacity = clamp(parseFloat(calculatedOpacity.toFixed(3)), 0, 1);
[INFO] [stdout]     |                                       ^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Array` in this scope
[INFO] [stdout]    --> src/posterizer.rs:219:13
[INFO] [stdout]     |
[INFO] [stdout] 219 |         if !Array.isArray(steps) {
[INFO] [stdout]     |             ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:297:33
[INFO] [stdout]     |
[INFO] [stdout] 297 |             let mut threshold = Math.min(colorsToThreshold, (i + 1) * stepSize);
[INFO] [stdout]     |                                 ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `isNaN` in this scope
[INFO] [stdout]    --> src/posterizer.rs:351:36
[INFO] [stdout]     |
[INFO] [stdout] 351 |                 colorIntensity: if isNaN(color) { 0 } else { (if blackOnWhite { 255 - color } else { color }) / 255 }
[INFO] [stdout]     |                                    ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Array` in this scope
[INFO] [stdout]    --> src/posterizer.rs:423:12
[INFO] [stdout]     |
[INFO] [stdout] 423 |         if Array.isArray(steps) && count {
[INFO] [stdout]     |            ^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:440:13
[INFO] [stdout]     |
[INFO] [stdout] 440 |             Math.min(colorsCount, Math.max(2, steps))
[INFO] [stdout]     |             ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `Math` in this scope
[INFO] [stdout]    --> src/posterizer.rs:440:35
[INFO] [stdout]     |
[INFO] [stdout] 440 |             Math.min(colorsCount, Math.max(2, steps))
[INFO] [stdout]     |                                   ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `min`
[INFO] [stdout]  --> src/posterizer.rs:2:21
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::cmp::{max, min};
[INFO] [stdout]   |                     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary braces around block return value
[INFO] [stdout]    --> src/posterizer.rs:243:91
[INFO] [stdout]     |
[INFO] [stdout] 243 |         colorStops = colorStops.sort(|a, b| { if a < b == lookingForDarkPixels { 1 } else { -1 } });
[INFO] [stdout]     |                                                                                           ^^^^^^ help: remove these braces
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_braces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `while` condition
[INFO] [stdout]    --> src/potrace.rs:234:15
[INFO] [stdout]     |
[INFO] [stdout] 234 |         while (currentPoint = blackMap.find_next(currentPoint)) {
[INFO] [stdout]     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:28:30
[INFO] [stdout]    |
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout]    |                              ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct PosterizerOptions<'a> {
[INFO] [stdout] 26 |     potrace: Option<Box<PotraceOptions>>,
[INFO] [stdout] 27 |     steps: Option<Box<Vec<u8>>>, // typeof STEPS_AUTO | number | number[]
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&'a str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:29:24
[INFO] [stdout]    |
[INFO] [stdout] 29 |     rangeDistribution: &str, // typeof RANGES_AUTO | string
[INFO] [stdout]    |                        ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub struct PosterizerOptions<'a> {
[INFO] [stdout] 26 |     potrace: Option<Box<PotraceOptions>>,
[INFO] [stdout] 27 |     steps: Option<Box<Vec<u8>>>, // typeof STEPS_AUTO | number | number[]
[INFO] [stdout] 28 |     fillStrategy: Option<Box<&str>>, // typeof FILL_DOMINANT | string
[INFO] [stdout] 29 |     rangeDistribution: &'a str, // typeof RANGES_AUTO | string
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]    |                 ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &'a str,
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:59:30
[INFO] [stdout]    |
[INFO] [stdout] 59 |     fillStrategy: Option<Box<&str>>,
[INFO] [stdout]    |                              ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]  ...
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]   --> src/posterizer.rs:60:24
[INFO] [stdout]    |
[INFO] [stdout] 60 |     rangeDistribution: &str,
[INFO] [stdout]    |                        ^ expected named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]    |
[INFO] [stdout] 52 | pub struct Posterizer<'a> {
[INFO] [stdout] 53 |     potrace: Potrace,
[INFO] [stdout] 54 |     calculatedThreshold: Option<Box<i32>>,
[INFO] [stdout] 55 |     threshold: Option<Box<i32>>,
[INFO] [stdout] 56 |     blackOnWhite: bool,
[INFO] [stdout] 57 |     background: &str,
[INFO] [stdout]  ...
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 19 previous errors; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0412, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust-potrace`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `Command { std: "docker" "inspect" "d5918ae205e8a6bcb374b252e0c52d87aa82d3d248677673e3f05e405a34e4e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d5918ae205e8a6bcb374b252e0c52d87aa82d3d248677673e3f05e405a34e4e9", kill_on_drop: false }`
[INFO] [stdout] d5918ae205e8a6bcb374b252e0c52d87aa82d3d248677673e3f05e405a34e4e9
